def city_country(city_name,city_country):
    city_country1 = city_name + ',' + city_country
    return city_country1
a = city_country('taian','china')
b = city_country('jinan','china')
c = city_country('洛杉矶','美国')
print(a)
print(b)
print(c)
def make_album(singer_name,album_name,song_number=''):
    if song_number :
        s_a = {'singer_name':singer_name,'album_name':album_name,'song_number':song_number}
    else:
        s_a = {'singer_name': singer_name, 'album_name': album_name}
    return s_a
a = make_album('name1','album1','1')
b = make_album('name2','album2','2')
c = make_album('name3','album3','3')
print(a)
print(b)
print(c)
def make_album(singer_name,album_name,song_name=''):
    if song_name:
        s_a={'singer_name':singer_name,'album_name':album_name,'song_number':song_number}
    else:
        s_a = {'singer_name': singer_name, 'album_name': album_name}
    return s_a
s_n="请输入歌手名:(输入'quit'后退出）"
a_n="请输入专辑名:(输入'quit'后退出）"
t = True
while t:
    a = input(s_n)
    b = input(a_n)
    if a == 'quit' or b== 'quit':
           break
else :
    c = make_album(a,b)
    print(c)